package task17_01;

import java.time.Year;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/30 9:15
 * @description:
 */
public class Task17_02 {
  public static void main(String[] args) {
    int[] x={4,3,7};
    int [] y=new int[4];
    y[0]=1;
    y[1]=2;
    y[2]=x[2];
    System.out.println("数组y的所有元素：");
    for (int i=0;i<y.length;i++){
      System.out.print(y[i]+"\t");
    }
    System.out.println();

    y=x;
    System.out.println("执行y=x后，数组y的所有元素：");
    for (int i=0;i<y.length;i++){
      System.out.print(y[i]+"\t");
    }
    System.out.println();

    x[0]=10;
    System.out.println("Y=[0]="+y[0]);
  }


}
